<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>首页</h1>
    <form action="/user" method="post">
        <input value="post提交" type="submit"/>
    </form>
    <form action="/user" method="get">
        <input value="get提交" type="submit"/>
    </form>
    <form action="/user" method="post">
        <input type="hidden" name="_m" value="put">
        <input value="put提交" type="submit"/>
    </form>
    <form action="/user" method="post">
        <input type="hidden" name="_m" value="delete">
        <input value="delete提交" type="submit"/>
    </form>


    <form action="/getPost" method="post">
        <input type="text" name="name"/>
        <input type="password" name="password"/>
        <input value="post提交" type="submit"/>
    </form>
    <hr/>
    <a href="/user/1/李煊" >PathVariable路径请求参数</a>
    <a href="/boss/1;age=10/2;age=20" >矩阵变量请求参数</a>
    <a href="/path/1;age=10;name=李煊" >简单矩阵变量请求参数</a>
    <hr/>
    <form action="/putUser" method="post">
        <input type="text" name="userName" >
        <input type="radio" name="boss" value="true">true
        <input type="radio" name="boss" value="false">false
        <input type="text" name="birth" >
        <input type="number" name="age" >
<!--        <input type="text" name="pet.name" >-->
<!--        <input type="text" name="pet.weight" >-->
        <input type="hidden" name="pet" value="阿毛,100.1">
        <input type="hidden" name="_m" value="put">
        <input value="put提交" type="submit"/>
    </form>

    <a href="/user/1/李煊?format=xml" >xml返回值</a>
    <a href="/user/1/李煊?format=json" >json返回值</a>
</body>
</html>